package com.yonder.gocommand.entity;


public enum UserStatus {

	ACTIVE("Active"), SUSPENDED("Suspended");
	private final String value;

	UserStatus(String value) {
		this.value = value;
	}

	public static UserStatus fromValue(String value) {
		if (value != null) {
			for (UserStatus status : values()) {
				if (status.value.equalsIgnoreCase(value)) {
					return status;
				}
			}
		}
		return getDefault();
	}

	public String toValue() {
		return value;
	}

	public static UserStatus getDefault() {
		return SUSPENDED;
	}

}
